package com.lagou.concurrent.demo;

public class Main {
    public static void main(String[] args) throws InterruptedException {
        MyThread myThread = new MyThread();
        myThread.start();
        //main线程会暂停，等待myThread执行完成后，main线程继续执行
        myThread.join();
        System.out.println("main线程执行结束");
    }
}
